import React from 'react';
import { ISearchSelector, IToolButton } from '@/base-ui/tool-bar';

// 选择器配置
export const SearchSelector: ISearchSelector = {
  Options: [
    { label: '疾病问题', value: '1' },
  ],
  defaultValue: '1',
  id: 8
};
// 按钮组
export const buttonGroup: IToolButton[] = [
  { type: 'create', text: '新增记录', isShow: true, onClick: () => {}, id: 9 },
];

export const FormColumns: any = [
  {
    title: '疾病问题',
    dataIndex: 'diseaseName',
    key: 'diseaseName'
  },
  {
    title: '病种数量',
    dataIndex: 'illnessChickenTotal',
    key: 'illnessChickenTotal',
    sorter: (a: any, b: any) => a.num - b.num
  },
  {
    title: '疾病起始时间',
    dataIndex: 'illnessDate',
    key: 'illnessDate',

  },
  {
    title: '疾病结束时间',
    dataIndex: 'recoveryDate',
    key: 'recoveryDate'
  },
  {
    title: '应对措施',
    dataIndex: 'treatmentPlan',
    key: 'treatmentPlan'
  },
  {
    title: '处理结果',
    dataIndex: 'planResult',
    key: 'planResult'
  },
];

//复选框的接口
export interface DataType {
  key: React.Key;
  id: string;
  name: string;
  age: number;
  address: string;
}
